package com.handa.documentManager.service.impl;

import cn.hutool.core.lang.Assert;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.handa.documentManager.dao.UserFavoritesDao;
import com.handa.documentManager.entity.DO.UserFavoritesDO;
import com.handa.documentManager.service.UserFavoritesService;
import org.springframework.stereotype.Service;

/**
 * (UserFavorites)表服务实现类
 *
 * @author makejava
 * @since 2025-09-11 17:42:22
 */
@Service("userFavoritesService")
public class UserFavoritesServiceImpl extends ServiceImpl<UserFavoritesDao, UserFavoritesDO> implements UserFavoritesService {

    @Override
    public void deleteUserFavorites(UserFavoritesDO userFavoritesDO) {
        Assert.notBlank(userFavoritesDO.getPath());
        Assert.notBlank(userFavoritesDO.getBucket());
        Assert.notNull(userFavoritesDO.getUserId());
        QueryWrapper<UserFavoritesDO> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("user_id", userFavoritesDO.getUserId());
    }
}

